package cn.wawi.entity.sys;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
* sys_user 实体类
* 2016-06-13 16:57:19 cn.wawi.entity.sys
*/ 

@JsonIgnoreProperties("password")
public class User implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String username;
	private String realname;
	private String nickname;
	private String phone;
	private String password;
	private String email;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd")
	private java.util.Date birthday;
	private Long geneder;
	private String status="1";
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date regTime=new Date();
	private Long departmentId;
	private String deptName;
	private String remark;
	
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName=deptName==null?null:deptName.trim();
	}
	public void setId(Long id){
		this.id=id;
	}
	public Long getId(){
		return id;
	}
	public void setUsername(String username){
		this.username=username==null?null:username.trim();
	}
	public String getUsername(){
		return username;
	}
	public void setRealname(String realname){
		this.realname=realname==null?null:realname.trim();
	}
	public String getRealname(){
		return realname;
	}
	public void setNickname(String nickname){
		this.nickname=nickname==null?null:nickname.trim();
	}
	public String getNickname(){
		return nickname;
	}
	public void setPhone(String phone){
		this.phone=phone==null?null:phone.trim();
	}
	public String getPhone(){
		return phone;
	}
	public void setPassword(String password){
		this.password=password==null?null:password.trim();
	}
	public String getPassword(){
		return password;
	}
	public void setEmail(String email){
		this.email=email==null?null:email.trim();
	}
	public String getEmail(){
		return email;
	}
	public void setBirthday(java.util.Date birthday){
		this.birthday=birthday;
	}
	public java.util.Date getBirthday(){
		return birthday;
	}
	public void setGeneder(Long geneder){
		this.geneder=geneder;
	}
	public Long getGeneder(){
		return geneder;
	}
	public void setStatus(String status){
		this.status=status==null?null:status.trim();
	}
	public String getStatus(){
		return status;
	}
	public void setRegTime(java.util.Date regTime){
		this.regTime=regTime;
	}
	public java.util.Date getRegTime(){
		return regTime;
	}
	public void setDepartmentId(Long departmentId){
		this.departmentId=departmentId;
	}
	public Long getDepartmentId(){
		return departmentId;
	}
	public void setRemark(String remark){
		this.remark=remark==null?null:remark.trim();
	}
	public String getRemark(){
		return remark;
	}
}

